﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using BluePortal.Streaming.Services;
using BluePortal.Framework;
using System.Windows.Forms;
using System.Xml.Serialization;
using System.IO;
using BluePortal.Encoding.Core;
using BluePortal.Encoding.Core.Interface;


namespace BluePortal.Encoding.Process
{
    class Program
    {
        [STAThread]
        static void Main(string[] args)
        {
            using (ServiceHost serviceHost = new ServiceHost(typeof(VideoEncoderProcess)))
            {
                // Open the ServiceHost to create listeners and start listening for messages.
                serviceHost.Open();

                // The service can now be accessed.
                Console.WriteLine("-------------------------------------------------------------");
                Console.WriteLine("EncodedVideoDirectory  : " + BluePortal.Streaming.Services.Properties.Settings.Default.EncodedVideoDirectory);
                Console.WriteLine("UploadedVideoDirectory : " + BluePortal.Streaming.Services.Properties.Settings.Default.UploadedVideoDirectory);
                Console.WriteLine("DeleteEncodedFile      : " + BluePortal.Streaming.Services.Properties.Settings.Default.DeleteEncodedFile);
                Console.WriteLine("DeleteUploadedFile     : " + BluePortal.Streaming.Services.Properties.Settings.Default.DeleteUploadedFile);
                Console.WriteLine("Error Queue            : " + BluePortal.Streaming.Services.Properties.Settings.Default.ErrorQueue);
                Console.WriteLine("-------------------------------------------------------------");

                Console.ReadLine();
                serviceHost.Close();
            }   
        }
    }
}
